Skip to main content

apache 配置

LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule status_module modules/mod_status.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule include_module modules/mod_include.so
LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so


LoadModule php5_module G:/WAMP/php-5.6.32-Win32-VC11-x64/php5apache2_4.dll
PHPIniDir "G:/WAMP/php-5.6.32-Win32-VC11-x64"

#LoadModule php5_module G:/WAMP/php-5.6.9-Win32-VC11-x64/php5apache2_4.dll
#PHPIniDir "G:/WAMP/php-5.6.9-Win32-VC11-x64"


AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .txt
DocumentRoot "G:/WWW"
<Directory "G:/WWW">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride ALL

#
# Controls who can get stuff from this server.
#
Require all granted
Header set Access-Control-Allow-Origin *

</Directory>

NameVirtualHost localhost

<VirtualHost localhost:80>
DocumentRoot "G:/WWW"
ServerName localhost
</VirtualHost>

<VirtualHost *:8088>
ServerAdmin 66500852@qq.com
DocumentRoot "G:/WWW/book/public"
ServerName localhost:8088
ErrorLog logs/book-error.log
CustomLog logs/book-access.log common
</VirtualHost>

<VirtualHost *:8089>
ServerAdmin 66500852@qq.com
DocumentRoot "G:/WWW/showdoc"
ServerName localhost:8089
ErrorLog logs/book-showdoc-error.log
CustomLog logs/book-showdoc-access.log common
</VirtualHost>